package servertime

import (
	"context"
	v1 "goGameWebServer/api/server_time/v1"
	"goGameWebServer/internal/common/utils"
	"goGameWebServer/internal/controller"

	"github.com/gogf/gf/v2/frame/g"
)

func (c *ServerTimeControllerV1) GetServerTime(ctx context.Context, req *v1.ServerTimeReq) (res *v1.ServerTimeRes, err error) {
	controller.BackResponseOK(g.RequestFromCtx(ctx), utils.GetNowTimestampSecond())
	return
}
